﻿<%@ Page Title="Staff Master" Language="C#" MasterPageFile="~/GEMS.master" AutoEventWireup="true"
    CodeFile="StaffMaster.aspx.cs" Inherits="SalesmanMaster" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        function clrCtrl() {


        }

   
    </script>
    <script language="javascript" type="text/javascript">
        function validate() {
            var Show = '';

            if (document.getElementById("<%=txtUserName.ClientID %>").value == "") {
                Show = Show + '\n - Enter  User Name';
            }


            if (document.getElementById("<%=txtPassowrd.ClientID %>").value == "") {
                Show = Show + '\n - Enter password';
            }


            if (document.getElementById("<%=txtAddress.ClientID %>").value == "") {
                Show = Show + '\n - Enter Address';
            }


            if ((document.getElementById("<%=txtMobileNo.ClientID%>").value == "") && (document.getElementById("<%=txtOfficeNo.ClientID%>").value == "")) {
                Show = Show + ('\n - Enter Your Mobile Number  / Office Number');
            }


            if (document.getElementById("<%=txtNoofDays.ClientID %>").value == "") {
                Show = Show + '\n - Enter Number Of Days';
            }
            if (document.getElementById("<%=txtMaxCreditLimit.ClientID %>").value == "") {
                Show = Show + '\n - Enter Max Credit Limit ';
            }



            if (Show != '') {
                alert(Show);
                return false;
            }
            else {
                return true;
            }

        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container960">
        <div class="container_12 container_16">
            <div class="full">
                <div class="content">
                    <h2>
                        Staff Master</h2>
                    <div class="counter" style="margin-left: 65px;">
                        <div class="grid_5">
                            <div class="row">
                                <div class="leftcol ">
                                    <span>Name</span>
                                </div>
                                <div class="rightcol">
                                    <asp:TextBox ID="txtName" runat="server" CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol ">
                                    <span>User Name</span>
                                </div>
                                <div class="rightcol">
                                    <asp:TextBox ID="txtUserName" runat="server" CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol ">
                                    <span>Password</span>
                                </div>
                                <div class="rightcol">
                                    <asp:TextBox ID="txtPassowrd" runat="server" CssClass="field" TextMode="Password"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol ">
                                    <span>Confirm Password</span>
                                </div>
                                <div class="rightcol">
                                    <asp:TextBox ID="txtconfpass" runat="server" CssClass="field" TextMode="Password"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol">
                                    <span>User Type</span>
                                </div>
                                <div class="rightcol">
                                    <asp:DropDownList ID="ddlUserType" runat="server" Style="width: 218px;" CssClass="field">
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol ">
                                    <span>Max Credit Limit</span>
                                </div>
                                <div class="rightcol">
                                    <asp:TextBox ID="txtMaxCreditLimit" runat="server" CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol ">
                                    <span>Commission</span>
                                </div>
                                <div class="rightcol">
                                    <asp:TextBox ID="txtCommission" runat="server" CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="grid_5 two_col">
                            <div class="row">
                                <div class="leftcol ">
                                    <span>Address</span>
                                </div>
                                <div class="rightcol ">
                                    <asp:TextBox ID="txtAddress" runat="server" CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol ">
                                    <span>Address1</span>
                                </div>
                                <div class="rightcol ">
                                    <asp:TextBox ID="txtAddress1" runat="server" CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol ">
                                    <span>Mobile No</span>
                                </div>
                                <div class="rightcol">
                                    <asp:TextBox ID="txtMobileNo" runat="server" CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol">
                                    <span>Office No</span>
                                </div>
                                <div class="rightcol">
                                    <asp:TextBox ID="txtOfficeNo" runat="server" CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol">
                                    <span>No.of Days</span>
                                </div>
                                <div class="rightcol">
                                    <asp:TextBox ID="txtNoofDays" runat="server" CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol">
                                    <span>Discount</span>
                                </div>
                                <div class="rightcol">
                                    <asp:CheckBox ID="chk_Discount" runat="server" />
                                    <asp:TextBox ID="txtDiscountaAmt" runat="server" Style="margin-left: 10px; width: 185px;"
                                        CssClass="field"></asp:TextBox>
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol">
                                    <span>Movable</span>
                                </div>
                                <div class="rightcol">
                                    <asp:CheckBox ID="chK_Movable" runat="server" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="leftcol">
                                    &nbsp;
                                </div>
                                <div class="rightcol">
                                    <asp:Image ID="img_Staffavatar" Height="80px" ImageUrl="~/css/images/small1.jpg"
                                        CssClass="box" runat="server" />
                                </div>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row">
                            <div id="sub" style="clear: both;">
                                <asp:Button ID="svebtn" runat="server" Text="Save" class="lgin" OnClientClick=" return validate();"
                                    OnClick="svebtn_Click" />
                                <asp:Button ID="clrbtn" runat="server" Text="Clear" class="lgin" OnClientClick="clrCtrl();" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
